package com.sinosoft.ptas.control.dto;

import java.io.Serializable;

import com.sinosoft.ptas.entity.TargetOrgRefEntity;
import com.sinosoft.ptas.system.util.PtasObjectUtil;
/**
 * 目标和司局的对于关系传输类
 * @author lianWuJun
 * @time   2017年2月24日 上午10:21:49
 */
public class TargetOrgRefData implements Serializable{
	private static final long serialVersionUID = 1L;
	
	private String id;//目标省局关系编号
	private String tid;//目标编号
	private String oid;//省局编号
	private String creater;//创建者
	private String createTime;//创建时间
	private String updater;//更新者
	private String updateTime;//更新时间
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getTid() {
		return tid;
	}
	public void setTid(String tid) {
		this.tid = tid;
	}
	public String getOid() {
		return oid;
	}
	public void setOid(String oid) {
		this.oid = oid;
	}
	public String getCreater() {
		return creater;
	}
	public void setCreater(String creater) {
		this.creater = creater;
	}
	
	public String getCreateTime() {
		return createTime;
	}
	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}
	public String getUpdater() {
		return updater;
	}
	public void setUpdater(String updater) {
		this.updater = updater;
	}
	public String getUpdateTime() {
		return updateTime;
	}
	public void setUpdateTime(String updateTime) {
		this.updateTime = updateTime;
	}
	
	/**
	 * 传输类转化成实体类
	 */
	public TargetOrgRefEntity toEntity(){
		TargetOrgRefEntity torEntity = new TargetOrgRefEntity();
		PtasObjectUtil.oldToNew(torEntity, this, "serialVersionUID");
		return torEntity;
	}
	
	/**
	 * 实体类转化成传输类
	 */
	public void totargetOrgRefData(TargetOrgRefEntity targetOrgRefEntity){
		PtasObjectUtil.oldToNew(this, targetOrgRefEntity, "serialVersionUID");
	}
	
	
}
